package com.ruoyi.tws.controller.app;

import com.ruoyi.common.core.constant.Constants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.tws.api.domain.PtQy;
import com.ruoyi.tws.service.IPtQyService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 手机端 - 网络货运经营者controller
 */
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController
@RequestMapping(Constants.APP_URL + "/")
public class AppQyController {

    private final IPtQyService ptQyService;

    /**
     * 查询网络货运经营者信息
     * @return
     */
    @GetMapping("ptqyInfo")
    public R<PtQy> ptqyInfo() {
        return R.ok(ptQyService.lists());
    }

}
